package com.linkgie.galaxyframework.web;

/**
 * 重定向消息体；
 * 
 * @author Atom
 *
 */
public class RedirectMessage {

	/**
	 * 是否必须跳转；
	 */
	private boolean redirectRequired;

	/**
	 * 跳转对应的原生 HTTP 状态码；
	 */
	private int httpCode;

	/**
	 * 跳转到目的地址；
	 */
	private String redirectUrl;

	public RedirectMessage() {
	}

	public RedirectMessage(boolean redirectRequired, int httpCode, String redirectUrl) {
		this.redirectRequired = redirectRequired;
		this.httpCode = httpCode;
		this.redirectUrl = redirectUrl;
	}

	public boolean isRedirectRequired() {
		return redirectRequired;
	}

	public void setRedirectRequired(boolean redirectRequired) {
		this.redirectRequired = redirectRequired;
	}

	public int getHttpCode() {
		return httpCode;
	}

	public void setHttpCode(int httpCode) {
		this.httpCode = httpCode;
	}

	public String getRedirectUrl() {
		return redirectUrl;
	}

	public void setRedirectUrl(String redirectUrl) {
		this.redirectUrl = redirectUrl;
	}

}
